package other;

/**
 * @program: javase
 * @description:
 * @author: lld
 * @create: 2021-03-14 16:41
 **/
public abstract class AbstractClassTest {
    private int id;
    protected AbstractClassTest(int id) {
        this.id = id;
    }
    //抽象方法
    public  abstract  void play();

    //非抽象方法
    public final void play1() {
        System.out.println("play1");
    }
}
abstract class  test extends AbstractClassTest{
    protected test(int id) {
        super(id);
    }

    @Override
    public void play() {

    }

    public static void main(String[] args) {

    }
}
